local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1, L10_1, L11_1, L12_1, L13_1, L14_1
L0_1 = {}
L0_1.group_id = 155006055
L1_1 = {}
L1_1.pointarryRot = 500600005
L2_1 = {}
L3_1 = 55005
L2_1[1] = L3_1
L3_1 = {}
L4_1 = 55005
L5_1 = 55006
L6_1 = 55007
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L4_1 = {}
L5_1 = 55004
L4_1[1] = L5_1
L5_1 = {}
L6_1 = 55002
L5_1[1] = L6_1
L6_1 = {}
monsters = L6_1
L6_1 = {}
npcs = L6_1
L6_1 = {}
L7_1 = {}
L7_1.config_id = 55001
L7_1.gadget_id = 70211121
L8_1 = {}
L8_1.x = 139.641
L8_1.y = 196.837
L8_1.z = -429.407
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 0.0
L8_1.y = 331.966
L8_1.z = 0.0
L7_1.rot = L8_1
L7_1.level = 26
L7_1.drop_tag = "\232\167\163\232\176\156\233\171\152\231\186\167\231\168\187\229\166\187"
L7_1.isOneoff = true
L7_1.persistent = true
L8_1 = {}
L8_1.name = "chest"
L8_1.exp = 1
L7_1.explore = L8_1
L7_1.area_id = 200
L8_1 = {}
L8_1.config_id = 55002
L8_1.gadget_id = 70360315
L9_1 = {}
L9_1.x = 138.873
L9_1.y = 194.975
L9_1.z = -427.717
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 0.0
L9_1.y = 328.937
L9_1.z = 0.0
L8_1.rot = L9_1
L8_1.level = 36
L8_1.area_id = 200
L9_1 = {}
L9_1.config_id = 55003
L9_1.gadget_id = 70290281
L10_1 = {}
L10_1.x = 138.947
L10_1.y = 206.897
L10_1.z = -427.344
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 89.644
L10_1.y = 149.366
L10_1.z = 179.638
L9_1.rot = L10_1
L9_1.level = 36
L9_1.area_id = 200
L10_1 = {}
L10_1.config_id = 55004
L10_1.gadget_id = 70360314
L11_1 = {}
L11_1.x = 133.556
L11_1.y = 194.975
L11_1.z = -418.779
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 0.0
L11_1.y = 328.937
L11_1.z = 0.0
L10_1.rot = L11_1
L10_1.level = 36
L10_1.area_id = 200
L11_1 = {}
L11_1.config_id = 55005
L11_1.gadget_id = 70360311
L12_1 = {}
L12_1.x = 136.666
L12_1.y = 197.295
L12_1.z = -417.789
L11_1.pos = L12_1
L12_1 = {}
L12_1.x = 0.0
L12_1.y = 239.953
L12_1.z = 0.0
L11_1.rot = L12_1
L11_1.level = 36
L11_1.area_id = 200
L12_1 = {}
L12_1.config_id = 55006
L12_1.gadget_id = 70290169
L13_1 = {}
L13_1.x = 148.008
L13_1.y = 201.777
L13_1.z = -404.584
L12_1.pos = L13_1
L13_1 = {}
L13_1.x = 0.0
L13_1.y = 329.031
L13_1.z = 0.0
L12_1.rot = L13_1
L12_1.level = 36
L12_1.area_id = 200
L13_1 = {}
L13_1.config_id = 55007
L13_1.gadget_id = 70360304
L14_1 = {}
L14_1.x = 154.429
L14_1.y = 196.601
L14_1.z = -407.785
L13_1.pos = L14_1
L14_1 = {}
L14_1.x = 0.0
L14_1.y = 329.467
L14_1.z = 0.0
L13_1.rot = L14_1
L13_1.level = 36
L13_1.area_id = 200
L6_1[1] = L7_1
L6_1[2] = L8_1
L6_1[3] = L9_1
L6_1[4] = L10_1
L6_1[5] = L11_1
L6_1[6] = L12_1
L6_1[7] = L13_1
gadgets = L6_1
L6_1 = {}
regions = L6_1
L6_1 = {}
L7_1 = {}
L7_1.config_id = 1055008
L7_1.name = "GADGET_STATE_CHANGE_55008"
L8_1 = EventType
L8_1 = L8_1.EVENT_GADGET_STATE_CHANGE
L7_1.event = L8_1
L7_1.source = ""
L7_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_55008"
L7_1.action = "action_EVENT_GADGET_STATE_CHANGE_55008"
L7_1.trigger_count = 0
L8_1 = {}
L8_1.config_id = 1055009
L8_1.name = "GROUP_LOAD_55009"
L9_1 = EventType
L9_1 = L9_1.EVENT_GROUP_LOAD
L8_1.event = L9_1
L8_1.source = ""
L8_1.condition = ""
L8_1.action = "action_EVENT_GROUP_LOAD_55009"
L8_1.trigger_count = 0
L6_1[1] = L7_1
L6_1[2] = L8_1
triggers = L6_1
L6_1 = {}
variables = L6_1
L6_1 = {}
L6_1.suite = 1
L6_1.end_suite = 0
L6_1.rand_suite = false
init_config = L6_1
L6_1 = {}
L7_1 = {}
L8_1 = {}
L7_1.monsters = L8_1
L8_1 = {}
L9_1 = 55001
L10_1 = 55003
L11_1 = 55005
L12_1 = 55006
L13_1 = 55007
L8_1[1] = L9_1
L8_1[2] = L10_1
L8_1[3] = L11_1
L8_1[4] = L12_1
L8_1[5] = L13_1
L7_1.gadgets = L8_1
L8_1 = {}
L7_1.regions = L8_1
L8_1 = {}
L9_1 = "GADGET_STATE_CHANGE_55008"
L10_1 = "GROUP_LOAD_55009"
L8_1[1] = L9_1
L8_1[2] = L10_1
L7_1.triggers = L8_1
L7_1.rand_weight = 100
L6_1[1] = L7_1
suites = L6_1
function L6_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = ScriptLib
  L2_2 = L2_2.GetGadgetStateByConfigId
  L3_2 = A0_2
  L4_2 = 155006055
  L5_2 = 55005
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 212 ~= L2_2 then
    L2_2 = false
    return L2_2
  end
  L2_2 = true
  return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_55008 = L6_1
function L6_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGroupVariableValue
  L3_2 = A0_2
  L4_2 = "is_daynight_finish"
  L5_2 = 1
  L2_2(L3_2, L4_2, L5_2)
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGadgetStateByConfigId
  L3_2 = A0_2
  L4_2 = 55003
  L5_2 = GadgetState
  L5_2 = L5_2.GearStart
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.RemoveEntityByConfigId
  L3_2 = A0_2
  L4_2 = 155006055
  L5_2 = EntityType
  L5_2 = L5_2.GADGET
  L6_2 = 55002
  L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : remove_gadget_by_configid"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_GADGET_STATE_CHANGE_55008 = L6_1
function L6_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2
  L2_2 = DayNight_Gadget_Unlock
  L3_2 = A0_2
  L4_2 = 55005
  L2_2(L3_2, L4_2)
  L2_2 = DayNight_Gadget_Unlock
  L3_2 = A0_2
  L4_2 = 55007
  L2_2(L3_2, L4_2)
  L2_2 = DayNight_Gadget_Reset
  L3_2 = A0_2
  L4_2 = 55007
  L2_2(L3_2, L4_2)
  L2_2 = 0
  return L2_2
end
action_EVENT_GROUP_LOAD_55009 = L6_1
L6_1 = require
L7_1 = "V2_4/EnvState"
L6_1(L7_1)
L6_1 = require
L7_1 = "V2_4/EnvStateWorktop"
L6_1(L7_1)
